-- 字体设置 
vim.o.guifont = "SauceCodePro Nerd Font:h20" -- text below applies for VimScript

-- 内边距设置 
vim.g.neovide_padding_top = 8
vim.g.neovide_padding_bottom = 8
vim.g.neovide_padding_right = 8
vim.g.neovide_padding_left = 8

-- 窗口不透明度和颜色设置 
-- Helper function for transparency formatting
local alpha = function()
  return string.format("%x", math.floor(255 * vim.g.transparency or 0.8))
end
-- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar.
vim.g.neovide_transparency = 0.0
vim.g.transparency = 0.6
vim.g.neovide_background_color = "#0f1117" .. alpha()


vim.g.neovide_floating_blur_amount_x = 9.0
vim.g.neovide_floating_blur_amount_y = 9.0


vim.g.neovide_scroll_animation_length = 1

vim.g.neovide_theme = 'auto'

-- 设置在有未保存的更改时退出将需要确认(默认true)
vim.g.neovide_confirm_quit = true

-- 打开时是否应占用整个屏幕。这使用所谓的“窗口全屏”模式(默认 false)
vim.g.neovide_fullscreen = false

--记住以前的窗口大小和位置 
vim.g.neovide_remember_window_size = true
